<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>search (Magnolia)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File magnolia.rb, line 107</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">search</span>(<span class="ruby-identifier">options</span> = {})
      <span class="ruby-identifier">params</span> = { <span class="ruby-identifier">:tags</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">nil</span>,
            <span class="ruby-identifier">:person</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">nil</span>,
            <span class="ruby-identifier">:group</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">nil</span>,
            <span class="ruby-identifier">:rating</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">nil</span>,
            <span class="ruby-identifier">:from</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">nil</span>,
            <span class="ruby-identifier">:to</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">nil</span>,
            <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">nil</span>,
            <span class="ruby-identifier">:limit</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">10</span> }
      <span class="ruby-identifier">params</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">options</span>)

      <span class="ruby-identifier">create_marks_from_xml</span>(<span class="ruby-identifier">make_request</span>(<span class="ruby-value str">'bookmarks_find'</span>, <span class="ruby-identifier">params</span>))
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>